package com.example.enrollservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.enrollservice.entity.enrollment;

import java.util.List;
import java.util.Map;

public interface enrollmentService extends IService<enrollment> {
    List<Map<String, Object>> getStudentEnrollments(int userId);
    List<Map<String, Object>> getCourseEnrollments(int courseId);
    String approveEnrollment(Map<String, Object> requestBody);
    String rejectEnrollment(Map<String, Object> requestBody);
    enrollment getEnrollmentByUserAndCourse(int userId, int courseId);
}
